package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.SysPermission;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 权限表(SysPermission)表数据库访问层
 *
 * @author makejava
 * @since 2020-07-01 11:33:08
 */
@Component
public interface SysPermissionDao extends BaseMapper<SysPermission> {

    //根据用户ID获取权限列表
    List<SysPermission> selectListByUser(Integer userId);
}